/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Skyflow from "../../../index"; export declare namespace Authentication { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; token: core.Supplier; fetcher?: core.FetchFunction; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Additional headers to include in the request. */ headers?: Record; } } export declare class Authentication { protected readonly _options: Authentication.Options; constructor(_options: Authentication.Options); /** *

Generates a Bearer Token to authenticate with Skyflow. This method doesn't require the Authorization header.

Note: For recommended ways to authenticate, see API authentication.

* * @param {Skyflow.V1GetAuthTokenRequest} request * @param {Authentication.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Skyflow.BadRequestError} * @throws {@link Skyflow.UnauthorizedError} * @throws {@link Skyflow.NotFoundError} * * @example * await client.authentication.authenticationServiceGetAuthToken({ * grant_type: "urn:ietf:params:oauth:grant-type:jwt-bearer", * assertion: "eyLhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaXNzIjoiY29tcGFueSIsImV4cCI6MTYxNTE5MzgwNywiaWF0IjoxNjE1MTY1MDQwLCJhdWQiOiKzb21lYXVkaWVuY2UifQ.4pcPyMDQ9o1PSyXnrXCjTwXyr4BSezdI1AVTmud2fU3" * }) */ authenticationServiceGetAuthToken(request: Skyflow.V1GetAuthTokenRequest, requestOptions?: Authentication.RequestOptions): core.HttpResponsePromise; private __authenticationServiceGetAuthToken; protected _getAuthorizationHeader(): Promise; }